﻿<?xml version="1.0" encoding="utf-8"?>
<Configuration>
  <!--msi wix service template. See documentation http://devnet.mid.dom/SDM/Documents/SBLF_DWF_MsiHowTo5.doc-->
  <ProductName>Iit.ITBI.MDSManagerService</ProductName>

  <!--Location of root of your solution (the folder containing Build, Dependencies etc. folders) relative to the WixProject folder. .-->
  <RootDirectory>$(MSBuildProjectDirectory)\..\..</RootDirectory>

  <!--Location of the InputToWix subfolder containing the Harvest and Config folders, relative to RootDirectory. E.g. $(SB_RootDirectory)\Bin\InputToWix\Iit.abc\x86)\-->
  <InputToWix>$(SB_RootDirectory)\Bin\InputToWix\$(SB_ProductName)\$(Platform)\</InputToWix>

  <!--Msi version number when building locally, on your desktop-->
  <LocalVersionNumber>1.0.0.0</LocalVersionNumber>

  <!--GUID uniquely identifying your product. YOU MUST GENERATE A NEW ONE using VS Tools/Create GUID DO NOT USE {D0FD9BE2-C1FF-4673-ACF1-B4E971E892F1}-->
  <!--Afterwards NEVER change it.-->
  <UpgradeCode>{0C4F8E88-D1A4-4D81-BE4E-636FA3DE4403}</UpgradeCode>

  <!--State the purpose of your msi product-->
  <ProductPurpose>A windows service that manage the replication of master data master entities to slave entities.</ProductPurpose>

  <!--Folder in "Program Files/Saxo Bank" where product is installed. If empty = Service.Name-->
  <InstallDir></InstallDir>

  <!--How many previous versions of the msi should be kept on the target machine, valid only for Test and Dev environments-->
  <!--<PreviousReleasesRetensionCount>3</PreviousReleasesRetensionCount>-->

  <!--DexCheck variables-->

  <Dex>
    <!--Disable/enable DexCheck-->
    <DexCheckDisable>false</DexCheckDisable>
    <!--Number of seconds after service is started to wait to do DexCheck.-->
    <DexCheckDelay>60</DexCheckDelay>

    <!--If you want to use event ID other than 777 comment out the node <DexCheckEventID> and add your event ID -->
    <!--<DexCheckEventID>888</DexCheckEventID>-->

    <!--Event log name, e.g. Application-->
    <DexCheckEventLogName>Application</DexCheckEventLogName>
    <!--Service event log source, e.g. service1Name. If empty = Service/Name-->
    <DexCheckEventSource>Iit.ITBI.MDSManagerService</DexCheckEventSource>
  </Dex>

  <Service>
    <!--Service name -->
    <Name>Iit.ITBI.MDSManagerService</Name>
    <!--Service description -->
    <Description>
      The Iit.ITBI.MDSManagerService is responsible to execute automation actions against the IT Enterprise Master Data Services.
      For now it is executing the MasterEntityReplicator logic, which is replicating data and schema changes from master entities to subscribing slave entities.
    </Description>
    <!--File name of service exe -->
    <ExeFile>Iit.ITBI.MDSManagerService.exe</ExeFile>
    <!-- true if you want service account to run as local admin -->
    <ServiceAccountLocalAdmin>false</ServiceAccountLocalAdmin>

    <!--Destination file name if differnet from source. Normally empty -->
    <DestFileName></DestFileName>
    <!--Service display name. If empty DisplayName=Name. STRONGLY recommended to be empty -->
    <DisplayName></DisplayName>
    <!--Service command line options. STRONGLY recommended to be empty -->
    <CommandLineArguments></CommandLineArguments>
    <!--Service name of service dependency, e.g. MSMQ. STRONGLY recommended to be empty -->
    <DependencyId></DependencyId>
    <!--Wait or don't wait for service status on start. Almost always false -->
    <StartWait>false</StartWait>
    <!--Service arguments. STRONGLY recommended to be empty -->
    <ServiceArgument></ServiceArgument>
    <!--kill this service if it does not stop after _Service.StopWaitInSeconds -->
    <KillService>true</KillService>
    <!--Period of time to wait for service to stop. Seconds -->
    <StopWaitInSeconds>40</StopWaitInSeconds>
  </Service>

  <!--Create subfolders in install folder. Normally not needed. Enable if needed. -->
  <!--
	<PrimaryFolders>
		<LogFolder>Log</LogFolder>
		<BinFolder>Bin</BinFolder>
		<BinFolder>
			<FolderA>FolderA</FolderA>
			<FolderB>FolderB</FolderB>
		</BinFolder>
	</PrimaryFolders>
  -->

  <!--Create folders outside install folder. Normally not needed.  Enabled if needed.-->
  <!--
	<SecondaryFolders>
		<CommonFolder>c:\Common Folder</CommonFolder>
		<CommonFolder>
			<SubFolderA>FolderA</SubFolderA>
			<SubFolderB>FolderB</SubFolderB>
		</CommonFolder>
		<YetAFolder>d:\data</YetAFolder>
	</SecondaryFolders>
  -->

  <!--Simple environment specific config files. One file for each desired environment. E.g.-->
  <!--Config\sbReadme_DEV.config-->
  <!--Config\sbReadme_TST.config-->
  <!--Config\sbReadme_SIM.config-->
  <!--Config\sbReadme_Live.config-->
  <!--Can be repeated, with a new SimpleConfigurationByEnvironment name. The new name must be added in product.tt-->
  <!--<SimpleConfigurationByEnvironment>
		<SourceFolder>#(InputToWix)Config</SourceFolder>
		<DestinationFolder>INSTALLDIR</DestinationFolder>
		<DestinationFile>sbReadme.config</DestinationFile>
		<FilesByEnvironment>
			<DEV>sbReadme_DEV.config</DEV>
			<TST>sbReadme_TST.config</TST>
			<SIM>sbReadme_SIM.config</SIM>
			<Live>sbReadme_Live.config</Live>
		</FilesByEnvironment>
	</SimpleConfigurationByEnvironment>-->

  <!--Environment specific and unspecific config files found in folder structure. E.g.  -->
  <!--Example 1-->
  <!--Config\EnvironmentDependingFiles\Dev\a.ini-->
  <!--Config\EnvironmentDependingFiles\Dev\b.ini-->
  <!--Config\EnvironmentDependingFiles\Live\a.ini-->
  <!--Config\EnvironmentDependingFiles\Live\b.ini-->

  <!--Example 2, this results in:-->
  <!--Dev receives files Config\EnvironmentDependingFiles\Dev\a.ini and Config\EnvironmentDependingFiles\Dev\b.ini-->
  <!--Sim and Live receives files Config\EnvironmentDependingFiles\a.ini and Config\EnvironmentDependingFiles\b.ini-->
  <!--Config\EnvironmentDependingFiles\Dev\a.ini-->
  <!--Config\EnvironmentDependingFiles\Dev\b.ini-->
  <!--Config\EnvironmentDependingFiles\Sim-->
  <!--Config\EnvironmentDependingFiles\Live-->
  <!--Config\EnvironmentDependingFiles\a.ini-->
  <!--Config\EnvironmentDependingFiles\b.ini-->

  <EnvironmentDependingFiles>
    <SourceFolder>#(InputToWix)Config\EnvironmentDependingFiles</SourceFolder>
    <DestinationFolder>INSTALLDIR</DestinationFolder>
    <DestinationFile>Iit.ITBI.MDSManagerService.exe.config</DestinationFile>
  </EnvironmentDependingFiles>


  <!--Machine specific and unspecific config files found in folder structure. E.g.  -->
  <!--Config\MachineDependingFiles\Dev\devServer1\a.ini-->
  <!--Config\MachineDependingFiles\Dev\devServer1\b.ini-->
  <!--Config\MachineDependingFiles\Dev\devServer2\a.ini-->
  <!--Config\MachineDependingFiles\Dev\devServer2\b.ini-->
  <!--Config\MachineDependingFiles\Live\liveServer1\a.ini-->
  <!--Config\MachineDependingFiles\Live\liveServer1\b.ini-->
  <!--Config\MachineDependingFiles\Live\liveServer2\a.ini-->
  <!--Config\MachineDependingFiles\Live\liveServer2\b.ini-->
  <!--Config\MachineDependingFiles\x.ini-->
  <!--Config\MachineDependingFiles\y.ini-->

  <!--<MachineDependingFiles>
		<SourceFolder>#(InputToWix)Config\MachineDependingFiles</SourceFolder>
		<DestinationFolder>INSTALLDIR</DestinationFolder>
	</MachineDependingFiles>-->

  <!--User defined custom elements that can be read in product.tt-->
  <Custom>
    <TestParm>1</TestParm>
  </Custom>
</Configuration>